<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Button test</title>
<link rel="stylesheet" type="text/css" href="../button/button.css" />
<link rel="stylesheet" type="text/css" href="toolbar.css" />

<script type="text/javascript" src="../../os3jslib/liwe.js"></script>
<script type="text/javascript" src="../../os3jslib/utils.js"></script>
<script type="text/javascript" src="../../os3jslib/dom.js"></script>
<script type="text/javascript" src="../../os3jslib/string_enh.js"></script>
<script type="text/javascript" src="../../os3jslib/object_enh.js"></script>
<script type="text/javascript" src="../wwl.js"></script>

<script type="text/javascript" src="../button/button.js"></script>
<script type="text/javascript" src="toolbar.js"></script>

<script type="text/javascript">
function init ()
{
	var m = new WWL.toolbar ( 'prova' );
	var b = new WWL.button ( 'button' );

	m.mode = "V";

	m.add_item ( { txt: 'ciao' } );
	m.add_item ( { txt: 'john' } );
	m.add_item ( { txt: 'fabio', cback: hello } );

	m.render ( 'p1' );

	b.label = "Button";
	b.render ( 'p2' );
}

function hello ( widget, name, div )
{
	alert ( "Hello World!" );
}
</script>
</head>
<body onload="init()">
<div id="p1">cioa</div>
<div id="p2"></div>


</body>
</html>
